-- GENERATED SPELL FOR [Death Flayer] --


function spell0_5823(pUnit, Event) --@Venom Sting,n/a--
pUnit:FullCastSpellOnTarget(5416,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5823', 45000, 1)
end

function Sorts_5823(pUnit, Event)
local choix_sorts_5823 = math.random(0, 0)
if choix_sorts_5823 == 0 then
pUnit:RegisterEvent('spell0_5823', 1, 1)
end
end

function mob5823_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5823', math.random(1500, 3000), 1)
end

function mob5823_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5823_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5823_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5823, 1, 'mob5823_Action')
RegisterUnitEvent(5823, 2, 'mob5823_Leave')
RegisterUnitEvent(5823, 3, 'mob5823_Kill')
RegisterUnitEvent(5823, 4, 'mob5823_Die')
